import 'dart:convert';

import 'package:enterprise_v6_app/app/data/common/choice_bean.dart';
import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/get_b_department_all_entity.g.dart';

@JsonSerializable()
class GetBDepartmentAllEntity extends ChoiceBean {

	GetBDepartmentAllEntity();

	factory GetBDepartmentAllEntity.fromJson(Map<String, dynamic> json) => $GetBDepartmentAllEntityFromJson(json);
	String? id;
	String? companyCode;
	String? departmentName;
	int? departmentLevel;
	dynamic path;
	String? parentId;
	String? deleted;
	String? createDate;
	String? createBy;
	String? updateDate;
	String? updateBy;
	String? type;
	String? removeStatus;
	List<dynamic>? children;
	dynamic isPerson;
	int? taskCount;
	dynamic tuserList;

	Map<String, dynamic> toJson() => $GetBDepartmentAllEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}

	@override
	String getId() {
		return id ?? '';
	}


	@override
	String getShowName() {
		return departmentName ?? '';
	}

}
